<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>PHP Arrays Multi</title>
</head>
<body>
<h1>PHP Arrays Multi</h1>

<div>
    <h3>Two-dimensional Arrays</h3>
    <?php
    $cars = array(
        array("Volvo", 22, 18),
        array("BMW", 15, 13),
        array("Saab", 5, 2),
        array("Land Rover", 17, 15)
    );

    for ($row = 0; $row < 4; $row++) {
        echo("<p><b>Row number $row</b></p>");
        echo("<ul>");
        for ($col = 0; $col < 3; $col++) {
            echo("<li>" . $cars[$row][$col] . "</li>");
        }
        echo("</ul>");
    }
    ?>
</div>
</body>
</html>